package com.share.schedule.simple.service.impl;

import com.share.schedule.simple.dao.ScheduleLogMapper;
import com.share.schedule.simple.model.db.ScheduleLog;
import com.share.schedule.simple.model.db.ScheduleLogExample;
import com.share.schedule.simple.service.ScheduleLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class ScheduleLogServiceImpl implements ScheduleLogService {
    @Resource
    private ScheduleLogMapper scheduleLogMapper;

    @Override
    public long countByExample(ScheduleLogExample example) {
        return scheduleLogMapper.countByExample(example);
    }

    @Override
    public List<ScheduleLog> selectByExample(ScheduleLogExample example) {
        return scheduleLogMapper.selectByExample(example);
    }

    @Override
    public int deleteByExample(ScheduleLogExample example) {
        return scheduleLogMapper.deleteByExample(example);
    }

    @Override
    public int insert(ScheduleLog record) {
        return scheduleLogMapper.insert(record);
    }

    @Override
    public int insertSelective(ScheduleLog record) {
        return scheduleLogMapper.insertSelective(record);
    }

    @Override
    public int updateByExampleSelective(ScheduleLog record, ScheduleLogExample example) {
        return scheduleLogMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ScheduleLog record, ScheduleLogExample example) {
        return scheduleLogMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ScheduleLog record) {
        return scheduleLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ScheduleLog record) {
        return scheduleLogMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return scheduleLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public ScheduleLog selectByPrimaryKey(Long id) {
        return scheduleLogMapper.selectByPrimaryKey(id);
    }
}